package org.scau.studentevaluation.util;

import java.util.Calendar;

/**
 * 该项目对于当前时间的判定
 *
 */
public class DateUtil {
    /**
     * 获取当前学年
     * @return
     */
    public static int YEAR(){
        Calendar calendar = Calendar.getInstance();
        int year = calendar.get(Calendar.YEAR);
        int mount = calendar.get(Calendar.MONTH);
        if (mount < 10)year--;
        return year;
    }
}
